PoD: Allocate 4k pages if 2 meg allocation fails
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 25 Sep 2009 09:47:36 +0000 (10:47 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 25 Sep 2009 09:47:36 +0000 (10:47 +0100)
commit66b5d8857c82567041d5d1657af26729e78b4c48
tree65ea8a122fcca3e7731c16e03ed08a8987186c2f
parentfa2b145c099909eb006dbb0f67b9af44f7f1833d
PoD: Allocate 4k pages if 2 meg allocation fails

In p2m_pod_set_cache_target:
 * If a 2-meg allocation fails, try a 4k allocation
 * If both allocations fail, return -ENOMEM so that the domain build
   will fail.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/arch/x86/mm/p2m.c